package com.xinzhi.savingpot.rminfo.controller;

import com.xinzhi.savingpot.rminfo.service.impl.LimitAllImpl;
import com.xinzhi.savingpot.util.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api
@RestController
@RequestMapping("/RmInfo")
public class LimitAllController {
    @Autowired
    LimitAllImpl limitAll;

    @GetMapping("/getLimitAll")
    @ApiOperation("查询限制记录")
    public BaseResponse getLimitAll(@RequestParam("userid") int userid){

        return limitAll.findLimitAll(userid);
    }
}
